package cn.basic.org.dto;

import cn.basic.org.domain.Department;
import cn.basic.org.domain.Employee;
import cn.basic.org.domain.Shop;
import cn.basic.org.vo.result.DepartmentVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * description: DepartmentDTO <br>
 * date: 2023/3/3 10:07 <br>
 * author: ZhaoLc <br>
 * version: 1.0 <br>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DepartmentDTO {


    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 部门编号
     */
    private String sn;
    /**
     * 部门名称
     */
    private String name;
    /**
     * 部门的上级分类层级id
     */
    private String dirPath;
    /**
     * 部门 状态，0正常，1禁用
     */
    private Integer state;
    /**
     * 部门管理员，关联Employee表id
     */
    private Long managerId;
    /**
     * 上级部门
     */
    private Long parentId;
    private Long shopId;
    /**
     * 绑定商店
     */
    private Shop shop;
    /**
     * 父部门
     */
    private Department parent;
    /**
     * 部门经理
     */
    private Employee manager;
    /**
     * 子部门
     */
    private List<DepartmentVo> children;

}
